package ooday02;

public class ExtentsTest {
    public static void main(String[] args) {
        Student zs=new Student("张三",25,"佳木斯","jsd2302","001");
        System.out.println(zs.name);
        zs.eat();
        zs.sayHi();
        zs.study();
        zs.sleep();

        Teacher ls=new Teacher("李四",35,"山东青岛",5000);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teacher();

        Docter ww=new Docter("王五",37,"廊坊","外科医生");
        ww.eat();
        ww.sleep();
        ww.cut();
        ww.sayHi();


    }
}
